<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="dao.*" %>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="TagGroup" prefix="mytag"%>
<!doctype html>
<html lang="zh-CN">
<style>
.cardOuter {
    width: 280px;
    height: 30px;
    border-radius:10px;
	position:relative;
    left:20px
	
}
.excerptqzk{clear:both;border:1px solid #EAEAEA;padding:10px 10px 10px 10px;overflow:hidden;background-color:#fff;margin-bottom:-1px;}
</style>
<head >
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人主页</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/nprogress.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="apple-touch-icon-precomposed" href="images/icon.png">
<link rel="shortcut icon" href="images/favicon.ico">
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/nprogress.js"></script>
<script src="js/jquery.lazyload.min.js"></script>
<script>
function rec()
{	  
	 var user_name=document.getElementById("user_name").value; 
	 var user_email=document.getElementById("user_email").value; 
	 var user_tel=document.getElementById("user_tel").value; 
	 if((user_tel==""||user_tel==null)&&(user_email==""||user_email==null)&&(user_name==""||user_name==null))
		 {
		 alert("三个不可全为空");
		 }
}
</script>
<c:choose>
	<c:when test="${i eq 2}">
	<script type='text/javascript' charset='utf-8'> alert('修改成功!');</script>
	</c:when>

</c:choose>
</head>
<body class="user-select">
 <mytag:userPageHeaderTag/> 
	<body>
		<div class="excerpt-minic excerpt-minic-index" style="text-align:center;width:70%;height:300px; margin:0 auto 20px auto">	
			<form action="ModifyUserServlet?&type=1" method="POST" >
         <div style="float: left;padding-left: 10%">
               只输入需要修改的信息即可
               <br>
                用户名:<input type="text"  class="cardOuter" placeholder="请输入新的用户名" id="user_name" name="user_name" style="color:#999999" onclick="if(value==defaultValue){value='';this.style.color='#000000'}"       onBlur="if(!value){value=defaultValue;this.style.color='#999'}" />
   		  <br>
   		  <br>
   		 邮箱: <input type="email"  class="cardOuter" placeholder="请输入新的邮箱" id="user_email" name="user_email" style="color:#999999" onclick="if(value==defaultValue){value='';this.style.color='#000000'}"       onBlur="if(!value){value=defaultValue;this.style.color='#999'}" />
   		 <br>
   		 <br>
   		 电话: <input type="text"  class="cardOuter" placeholder="请输入新的电话" id="user_tel" name="user_tel" style="color:#999999" onclick="if(value==defaultValue){value='';this.style.color='#000000'}"       onBlur="if(!value){value=defaultValue;this.style.color='#999'}" />
   		 <br>
   		 <br>
   		 <input type="submit"  value="修改" style="color:white;background-color:#2B7ACD;width:60px;height:30px" onClick="rec()"> 
   		 </div>
   		 </form>
			<!-- 如果session 有用户的id，用上面那段就ok-->	
		</div> 
		
	</body>



<footer class="footer">
<div class="container">
<p>Copyright &copy; 企业论坛  Powered by YNWA team!</p>
</div>
<div id="gotop"><a class="gotop"></a></div>
</footer>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.ias.js"></script>
<script src="js/scripts.js"></script>
<script src="https://code.jquery.com/jquery.js"></script>
<!-- jQuery UI -->
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="bootstrap/js/bootstrap.min.js"></script>

<script src="vendors/datatables/js/jquery.dataTables.min.js"></script>

<script src="vendors/datatables/dataTables.bootstrap.js"></script>

<script src="js/custom.js"></script>
<script src="js/tables.js"></script>
 	<script type="text/javascript">
    function delcfm() {
        if (!confirm("确定要删除该帖子吗？")) {
            window.event.returnValue = false;
        }
    }
	</script>
</body>
</html>
